import { Page } from '@/components/page';
import { ZLTable, useTable } from '@/components/table';
import {
  IBusinessClassification,
  apiGetBusinessClassificationDelete,
  apiGetBusinessClassificationPage,
} from '@/services/type';
import {Button, Space, Upload, UploadFile, UploadProps} from 'antd';
import React, {useEffect, useState} from 'react';
import { EditModal } from './edit-modal';
import styles from './index.less';

const Index: React.FC<any> = () => {
    const [open, setOpen] = useState(false);
    const [fileList, setFileList] = useState<UploadFile[]>([]);

    const handleChange: UploadProps['onChange'] = ({ fileList: newFileList }) => {
        setFileList(newFileList);
    };

  return (
    <Page title="底部管理">
        <Upload
            accept="image/png, image/jpeg"
            action="/obe/service/nav/upload"
            listType="picture-card"
            fileList={fileList}
            onChange={handleChange}
        >
            {fileList?.length >= 1 ? null : '上传'}
        </Upload>
    </Page>
  );
};

export default Index;
